import { Tabs } from 'antd';
import PP from '../conm/PP';
function Index() {
  const onChange = key => {
    console.log(key);
  };
  const items = [
    {
      key: '1',
      label: '全部订单',
      children: <PP/>,
    },
    {
      key: '2',
      label: '待付款',
      children: '待付款',
    },
    {
      key: '3',
      label: '待发货',
      children: '待发货',
    },
  ];
  return (
    <div>
      <h4 style={{textAlign:'center'}}>我的订单</h4>
      <Tabs defaultActiveKey="1" items={items} onChange={onChange} />
    </div>
  )
}

export default Index
